package com.fa7.android.example.listafacil;

import android.database.Cursor;

public class Categoria {
	private Integer id;
	private String name;
	private String description;
	
	Categoria(Cursor c) {
		id = c.getInt(c.getColumnIndex("id"));
		name = c.getString(c.getColumnIndex("name"));
		description = c.getString(c.getColumnIndex("description"));
	}
	
	public Categoria(Integer id, String nome, String descricao) {
		super();
		this.id = id;
		this.name = nome;
		this.description = descricao;
	}

	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	
}
